adTempus API
ArcanaDevelopment.adTempus.Client.Collections Namespace / ADTObjectCollectionT<T> Class / UpdateFrom Method / UpdateFrom(IEnumerable<T>) Method
The source to update from


In This Topic
    UpdateFrom(IEnumerable<T>) Method
    In This Topic
    Updates the collection to match the specified source by adding, deleting, and reordering contents as needed.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub UpdateFrom( _
       ByVal source As IEnumerable(Of T) _
    ) 
    public virtual void UpdateFrom( 
       IEnumerable<T> source
    )
    public:
    virtual void UpdateFrom( 
       IEnumerable<T^>^ source
    ) 

    Parameters

    source
    The source to update from
    Remarks

    This method behaves differently from AddRange (which only adds to an existing collection). It makes the contents of the target collection match the contents of the source collection by adding and removing objects as necessary.

    See Also